/**
 * @author Eric Jahn
 * Course: Object Oriented Programming
 * Final Project
 * Due Date: August 3, 2012
 */
package oop.chat.user;

/**
 * this class extends the ContactList class,
 * so that the user can have different types of lists
 * @author Eric Jahn
 */
public class SpecialList extends ContactList 
{
    //category of the lsit
    private Category category;

	/**
	 * constructor I
	 * @param	category		Category 
	 */
    public SpecialList(Category category) 
	{
        this.category = category;
    }

	/**
	 * constructor II
	 * @param	category		Category
	 * @param	contact			Contact
	 */
    public SpecialList(Category category, Contact contact) 
	{
        //call parent constructor 	
        super(contact);
        this.category = category;
    }

    /**
     * gets the category of the list
     * @return	category	Category
     */
    public final Category getCategory() 
	{
        return this.category;
    }
    
    @Override
    public String toString()
    {
        StringBuffer buffer = new StringBuffer();
        buffer.append("SpecialList category: ");
        buffer.append(category);
        buffer.append(" ");
        buffer.append(super.toString());
        return buffer.toString();
    }
}